package com.xian.thisdemo;


/**
 * 目标:this关键字
 * */
public class Test {
    public static void main(String[] args) {
        Car c = new Car("宝马X6",999.99);
        System.out.println(c.name);
        System.out.println(c.price);

        System.out.println("-----------------------");
        System.out.println(c);

        c.goWith("奔驰");

    }
}
